<h2>Trang quản lý <a href="http://www.maytot.vn">maytot.vn</a></h2>
<!--<link href="/theme/Admin/css/control/index.css" rel="stylesheet">

<form action="" method="post" id="">
	<div id="admin-control">
		<div class="admin_control_header">
			Nội dung tin <span class="admin_control_notice">(Vui lòng điền đầy đủ thông tin)</span>
		</div>
		<div class="admin_control_row">
			<div class="admin_control_label">
				Chuyên mục :
			</div>
			<div class="admin_control_element">
				<div class="element-main">
					<select class="form-control" data-size="8" name="data[category_ids]" id="data_category_id">
						<option value="0">Chọn danh mục</option>
					    <?php
						    foreach ($rootCategories as $item){?>
								<optgroup value="<?php echo $item['RootCategory']['id']?>_" label="<?php echo $item['RootCategory']['category_name']?>">
								<?php
								foreach ($item['Category'] as $cat){?>
									<option value="<?php echo $item['RootCategory']['id']."_".$cat['category_id']?>"><?php echo $cat['category_name']?></option>
								<?php	
								}?>
								</optgroup>
								<?php
						    }
						?>
				  	</select>
				</div>
				<div class="category_group_warntip hide">
					<div class="warntip_triangle">&nbsp;</div>
					<div class="warntip_content">
						<span>Bạn chưa chọn danh mục của tin</span>
			    	</div>
				</div>
			</div>
		</div>
	
		<div class="admin_control_row">
			<div class="admin_control_label">
				Vùng :
			</div>
			<div class="admin_control_element">
				<div class="element-main">
					<select class="form-control" data-size="8" name="data[region_id]" id="data_region_id">
						<option value="0">Chọn vùng</option>
					    <?php foreach ($regions as $item){?>
					    	<option value="<?php echo $item['Region']['region_id']?>"><?php echo $item['Region']['region_name']?></option>
					    <?php } ?>
				  	</select>
				</div>
				<div class="category_group_warntip">
					<div class="warntip_triangle">&nbsp;</div>
					<div class="warntip_content">
						<span>Bạn chưa chọn vùng của tin</span>
			    	</div>
				</div>
			</div>
		</div>
	
		<div class="admin_control_row">
			<div class="admin_control_label">
				Bạn là :
			</div>
			<div class="admin_control_element">
				<div class="element-main">
					<label class="radio-inline">
					  	<input type="radio" name="data[person_company]" id="radioCaNhan" value="2" checked> Cá nhân
					</label>
					<label class="radio-inline">
					  	<input type="radio" name="data[person_company]" id="radioCongTy" value="1"> Công ty
					</label>
				</div>
				<div class="category_group_warntip">
					
				</div>
			</div>
		</div>
	
		<div class="admin_control_row">
			<div class="admin_control_label">
				Bạn đăng tin :
			</div>
			<div class="admin_control_element">
				<div class="element-main">
					<label class="radio-inline">
					  	<input type="radio" name="data[buy_sell]" id="radioCanBan" value="2" checked> Cần bán
					</label>
					<label class="radio-inline">
					  	<input type="radio" name="data[buy_sell]" id="radioCanMua" value="1"> Cần mua
					</label>
				</div>
				<div class="category_group_warntip">
					
				</div>
			</div>
		</div>
	
		<div class="admin_control_row">
			<div class="admin_control_label">
				Tựa đề :
			</div>
			<div class="admin_control_element">
				<div class="element-main">
					<input placeholder="Dùng tiếng việt có dấu" class="form-control" id="data_title" name="data[title_vn]" type="text" maxlength="50"  value=""/>
				</div>
				<div class="category_group_warntip" style="display: none;">
					<div class="warntip_triangle">&nbsp;</div>
					<div class="warntip_content">
						<span>Tựa đề phải dài ít nhất 2 ký tự</span>
			    	</div>
				</div>
			</div>
		</div>
	
		<div class="admin_control_row">
			<div class="admin_control_label">
				Giá :
			</div>
			<div class="admin_control_element">
				<div class="element-main">
					<input placeholder="Giá bạn muốn bán" class="form-control" name="data[price]" type="text" value="" id="data_price" maxlength="15" data-v-max="999999999999" data-v-min="0" data-a-dec="."  data-a-sep=","/>
				</div>
				<div class="element-inline color-defaul">
					<label class="radio-inline">
					  	<input type="radio" name="data[currency_type]" id="radioCurrencyVnd" value="1" checked> VND
					</label>
					<label class="radio-inline">
					  	<input type="radio" name="data[currency_type]" id="radioCurrencyUsd" value="2"> USD
					</label>
				</div>
				<div class="category_group_warntip warn-price">
					<div class="warntip_triangle">&nbsp;</div>
					<div class="warntip_content">
						<span>Thiếu giá tiền, vui lòng nhập số</span>
			    	</div>
				</div>
			</div>
		</div>
	
		<div class="admin_control_row">
			<div class="admin_control_label label-top">
				Hình :
			</div>
			<div class="admin_control_element">
				<div class="element-main">
					<div class="element-images">
						<div class="images-tip">“Trăm nghe không bằng mắt thấy”. Tin có hình được xem nhiều gấp 7 lần. 
							<br><b>ĐĂNG HÌNH ĐỂ BÁN CHẠY HƠN!</b>
						</div>
						<div class="row-3-image">
							<div class="one-image">
								<input class="postImage img1" type="file"/>
								<div class="image-upload">
									<span>Đăng hình</span>
								</div>
								<div id="image-success-1" class="image-up-success" style="display: none">
									<img src="/theme/Default/img/user-login-icon.png"/>
									<div class="remove-image delete1"></div>
								</div>
							</div>
							<div class="one-image">
								<input class="postImage img2" type="file"/>
								<div class="image-upload">
									<span>Đăng hình</span>
								</div>
								<div id="image-success-2" class="image-up-success" style="display: none">
									<img src="/theme/Default/img/user-login-icon.png"/>
									<div class="remove-image delete2"></div>
								</div>
							</div>
							<div class="one-image">
								<input class="postImage img3" type="file"/>
								<div class="image-upload">
									<span>Đăng hình</span>
								</div>
								<div id="image-success-3" class="image-up-success" style="display: none">
									<img src="/theme/Default/img/user-login-icon.png"/>
									<div class="remove-image delete3"></div>
								</div>
							</div>
						</div>
						<div class="row-3-image">
							<div class="one-image">
								<input class="postImage img4" type="file"/>
								<div class="image-upload">
									<span>Đăng hình</span>
								</div>
								<div id="image-success-4" class="image-up-success" style="display: none">
									<img src="/theme/Default/img/user-login-icon.png"/>
									<div class="remove-image delete4"></div>
								</div>
							</div>
							<div class="one-image">
								<input class="postImage img5" type="file"/>
								<div class="image-upload">
									<span>Đăng hình</span>
								</div>
								<div id="image-success-5" class="image-up-success" style="display: none">
									<img src="/theme/Default/img/user-login-icon.png"/>
									<div class="remove-image delete5"></div>
								</div>
							</div>
							<div class="one-image">
								<input class="postImage img6" type="file"/>
								<div class="image-upload">
									<span>Đăng hình</span>
								</div>
								<div id="image-success-6" class="image-up-success" style="display: none">
									<img src="/theme/Default/img/user-login-icon.png"/>
									<div class="remove-image delete5"></div>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="category_group_warntip warn-image">
					<div class="warntip_triangle">&nbsp;</div>
					<div class="warntip_content">
						<span>Hãy chọn ít nhất 1 hình</span>
			    	</div>
				</div>
			</div>
		</div>
	
		<div class="admin_control_row">
			<div class="admin_control_label">
				Năm sản xuất :
			</div>
			<div class="admin_control_element">
				<div class="element-main">
					<input class="form-control" name="data[product_year]" type="text" value="" id="data_product_year" maxlength="4"/>
				</div>
				<div class="category_group_warntip">
					<div class="warntip_triangle">&nbsp;</div>
					<div class="warntip_content">
						<span>Hãy nhập năm sản xuất</span>
			    	</div>
				</div>
			</div>
		</div>
	
		<div class="admin_control_row">
			<div class="admin_control_label label-top">
				Tình trạng :
			</div>
			<div class="admin_control_element">
				<div class="element-main">
					<label class="radio-inline">
					  	<input type="radio" name="data[product_status]" id="radioStateOld" value="1" checked> Đã qua sử dụng
					</label>
					<label class="radio-inline">
					  	<input type="radio" name="data[product_status]" id="radioStateNew" value="2"> Mới 100%
					</label>
				</div>
				<div class="category_group_warntip">
					
				</div>
			</div>
		</div>
	
		<div class="admin_control_row">
			<div class="admin_control_label">
				Nước sản xuất :
			</div>
			<div class="admin_control_element">
				<div class="element-main">
					<input class="form-control" name="data[product_country]" type="text" value="" id="data_product_country" maxlength="100"/>
				</div>
				<div class="category_group_warntip">
					<div class="warntip_triangle">&nbsp;</div>
					<div class="warntip_content">
						<span>Hãy nhập nước sản xuất</span>
			    	</div>
				</div>
			</div>
		</div>
		<div class="admin_control_row">
			<div class="admin_control_label">
				Thời gian đã sử dụng :
			</div>
			<div class="admin_control_element">
				<div class="element-main">
					<input class="form-control" name="data[time_used]" type="text" value="" id="data_time_used" maxlength="3"/>
				</div>
				<div class="element-inline color-defaul">
					<label class="radio-inline">
					  	<input type="radio" name="data[time_used_type]" id="radioTimeYear" value="1" checked> Năm
					</label>
					<label class="radio-inline" style="width: 80px;">
					  	<input type="radio" name="data[time_used_type]" id="radioTimeHour" value="2"> Giờ
					</label>
				</div>
				<div class="category_group_warntip warn-time">
					<div class="warntip_triangle">&nbsp;</div>
					<div class="warntip_content">
						<span>Hãy nhập thời gian sử dụng</span>
			    	</div>
				</div>
			</div>
		</div>
	
		<div class="admin_control_row">
			<div class="admin_control_label label-top">
				Thông tin về sản phẩm:
			</div>
			<div class="admin_control_element">
				<div class="element-main">
					<textarea placeholder="Điền thông tin sản phẩm (nếu có)" class="form-control" name="data[content]" rows="5" value=""></textarea>
				</div>
				<div class="category_group_warntip">
					
				</div>
			</div>
		</div>
	
		<div class="admin_control_row">
			<div class="admin_control_label">
				Tên người bán :
			</div>
			<div class="admin_control_element">
				<div class="element-main">
					<input class="form-control" name="data[sell_name]" type="text" value="" id="data_sell_name"/>
				</div>
				<div class="category_group_warntip">
					<div class="warntip_triangle">&nbsp;</div>
					<div class="warntip_content">
						<span>Hãy nhập tên người bán</span>
			    	</div>
				</div>
			</div>
		</div>
		<div class="admin_control_row">
			<div class="admin_control_label">
				Di động / Phone :
			</div>
			<div class="admin_control_element">
				<div class="element-main">
					<input class="form-control" name="data[phone_number]" type="text" value="" id="data_phone_number" maxlength="11"/>
				</div>
				<div class="category_group_warntip">
					<div class="warntip_triangle">&nbsp;</div>
					<div class="warntip_content">
						<span>Hãy nhập số điện thoại</span>
			    	</div>
				</div>
			</div>
		</div>
		<div class="admin_control_row">
			<div class="admin_control_label">
				Email :
			</div>
			<div class="admin_control_element">
				<div class="element-main">
					<input class="form-control" name="data[mail_address]" type="text" value="" id="data_mail_address" maxlength="255"/>
				</div>
				<div class="category_group_warntip">
					<div class="warntip_triangle">&nbsp;</div>
					<div class="warntip_content">
						<span>Hãy nhập Email</span>
			    	</div>
				</div>
			</div>
		</div>
	
		<div class="admin_control_row">
			<div class="admin_control_label">
				
			</div>
			<div class="admin_control_element">
				<input type="hidden" class="img_1 hdImg" name="data[img][0]"/>
				<input type="hidden" class="img_2 hdImg" name="data[img][1]"/>
				<input type="hidden" class="img_3 hdImg" name="data[img][2]"/>
				<input type="hidden" class="img_4 hdImg" name="data[img][3]"/>
				<input type="hidden" class="img_5 hdImg" name="data[img][4]"/>
				<input type="hidden" class="img_6 hdImg" name="data[img][5]"/>
				<div class="element-main">
					<button type="submit" class="btn btn-danger">Đăng tin</button>
				</div>
			</div>
		</div>
		<div>
			
		</div>
	</div>
</form>

<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
        <h4 class="modal-title" id="myModalLabel">Thông báo</h4>
      </div>
      <div class="modal-body">
       
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-primary" data-dismiss="modal">Đóng</button>
        
      </div>
    </div>
  </div>

</div>

 -->